package com.yuyou.tas.admin.mapper;

import com.yuyou.tas.service.api.admin.entity.CommJob;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CommJobMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommJob record);

    CommJob selectByPrimaryKey(Long id);

    CommJob selectByFId(@Param(value="fId")Long fId,
                        @Param(value="type")Integer type,
                        @Param(value="tag")String tag);

    List<CommJob> findLoadedJob(Long allotTempId);
    
    int updateByPrimaryKeySelective(CommJob record);
    
    int updateLoadedJob(Long allotTempId);
    
    int updateJobStatus(
    		@Param(value="fId")Long fId, 
    		@Param(value="type")Integer type,
    		@Param(value="tag")String tag, 
    		@Param(value="status")Integer status);
    
    
    List<CommJob> findAlarmCommJob(@Param("time") Date time);
    
}